﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SubSonic.Repository;
using SubSonic.Schema;
using System.Data;
using SubSonic.DataProviders;


namespace HRM.DAL
{
    public class BaseDAL
    {
        public static SimpleRepository Repository
        {
            get
            {
                return new SimpleRepository("HRConnectionString");
            }
        }

        public StoredProcedure GetStoreProc(string spName)
        {
            StoredProcedure sp = new StoredProcedure(spName, ProviderFactory.GetProvider("HRConnectionString"));
            return sp;
        }
    }
}
